061 comparison + math instructions
您好,在这个视频中,我们将在挑战中一起学习竞赛和数学说明。
Hello, in this video, we are going to learn competition and math instructions together in a challenge.
好的,现在我们可以从信封开始,我们可以在此处定义数据,也可以在此处定义整个文本。
OK, now we can start with the envelope and we can define the data in here or we can define whole text in here.
例如,在这里,我们可以说一个新的,现在我们可以写变量,嗯,一,好的。
For example, in here, we can say to a new and now we can write variable, um, one, OK.
这将是整数值。
This will be integer value.
地址是我们可以说的MMW,例如,两个,让我们继续。
And the address is we can say MMW, for example, two and let's continue.
能够。
We're able.
两个人都非常能干。
Two very able.
三个,我们有四个,五个非常有能力,好吗?
Three, and we're able four and very able five, OK?
在主大厅,我们可以说如果变量一等于二,我们就可以了。
And in the main lobby, we can say if variable one equals two, we're able to OK.
然后我们要做的,我们会说我们能够,例如,五等于变量三加变量。
And then what we are going to do, we will say we're able for example, five equals to variable three plus variable.
但现在。
But now.
好吧,另外,我们能够做到,而且我们现在需要做到这一点,好吧,现在我们忘记了什么。
OK, plus, we're able for and also we need to now put to that, OK, and now what we forgot.
我们忘记了和如果。
We forgot and if.
好的,棒极了。
OK, very good.
现在我们可以将该程序下载到模拟器中,我们可以了解它是否正常工作?
Now we can do a download this program to simulator and we can follow is it working correctly or not?
现在开始我们的模块并完成。
So now start our modules and finish.
现在,p.l.c.
Now, the p.l.c.
现在开始,我们将检查它是否正常工作?
is starting now and we will check is it working correctly or not?
我们需要稍等一下。
We need to wait a little bit.
它仍在下载,当前模式为停止,让我们取消它并再次下载。
It is still downloading and the current mode is stop, let's cancel it and again.
现在,我将尝试一次监控,但不是完全下载并再次启动modu。
Now, I will try once to monitoring, but it is not to download completely and start modu once more.
我们需要等待。
We need to wait.
有事,一定要快一点。
There is something wrong, it must be a little bit quick.
对于这样的等待,我感到很抱歉,对于延迟或延误,我感到很抱歉。
And I'm sorry for this waiting and I'm sorry for the delay or delay.
一次又一次。
Again and again.
不,这不是继续,我会说在模拟器中取消它,让我们把它取消,好吗?
No, it is not continue, I will say cancel it in a simulator, let's make this off, OK?
在主大厅,我们需要上网模拟器,但没有激活模拟器,我就搜索一下。
And in the main lobby, we need to go online to simulator, but there is no simulator is activated and I will just search.
我的模拟器又出问题了。
Something is wrong with my simulator again.
我会尝试搜索,但它没有跟随,因为模拟器已关闭。
I will try to search, but it is not following because the simulator is closed.
所以有错误。
So there is wrong.
这个项目出了点问题。
Something is wrong in this project.
而且那个搜索也是错误的。
And also that search was wrong.
我会去那里,没有问题,然后首先离线。
I will go there and there is no problem and go offline, first of all.
现在让我们启动我们的模拟器。
And now let's start our simulator.
我们也可以这样解决问题。
And also we can solve the problem with like this.
开始搜索。
Start a search.
我们会找到我们的模拟器。
We will find our simulator.
如果你的模拟器有问题,你可以和我和 Lord 再次做类似的事情,现在启动模块并完成。
If there is something wrong with your simulator, you can do similar things with me and Lord again and now start module and finish.
好的,现在我们准备好了。
OK, now we are ready.
现在我们可以在这里监视,您可以看到变量五为零,好吗?
So now we can monitor that us in here you can see the variable five is zero, OK?
结果是真的。
And the result is true.
为什么?
Why?
因为我们能够一等于二。
Because we are able one equals two.
我们能够,现在我们可以在这里说变量一。
We're able to and now we can say in here variable one.
如果我说这个值是一。
If I say this value is one.
所以这个结果是这个循环结果是假的,因为 y 1 不等于 0。
So this result is this loop result is false because y one is not equal to zero.
好的,如果我再次将其更改为零。
OK, if I change this again to zero.
所以循环结果为真。
So the loop result is true.
现在,如果我更改为变量三、二,例如变量五,让我们将其更改为七,结果是变量五是十二。
And now if I change to variable three, two, for example, five and variable for let's change it to seven and the result is variable five is twelve.
好的,这是正确的工作,因为变量一是因为能够,现在我们正在学习,我们正在学习竞争。
OK, that is correctly working because variable one because to be able to and now we are learning at this moment we are learning the competition.
如果我们说如果不相等的话,就可以做这些事情了。
If we say if it is not equal, OK to be able to do these things OK.
我们也可以说变量五等于变量,例如五乘以五。
And also we can say variable five equals variable, for example five multiplied by five.
好吧,在这里你可以看到有一个错误的事情,好吧。
OK, and in here you can see there is a wrong thing, OK.
我们也可以在这里说,变量六等于二。
And also we can say in here, variable six equals two.
嗯。
Um.
变量五除以二。
Variable five divided by two.
好的,现在在这个变量中,我们需要将其定义为全局内存中的整数。
OK, and now in this variable, we need to define it as integer in the global memory.
我想定义它。
I want to define it.
好的,现在让我们进行下载。
OK, so now let's do a download.
现在,我们正在学习数学指令。
And also now at this moment, we are learning the math instructions.
好的,所以这个循环,呃,条件结果是假,因为为什么在这里你看不到余弦变量。
OK, so this loop, uh, condition result is false because of why in here you can see not a cosine variable.
一个是零变量,两个是零值。
One is zero variable, two values is zero.
所以这是正确的。
So this is correct.
所以我们看起来不平等。
So we are looking not equal.
所以这个结果是真的。
So this result is true.
我的意思是,如果我将其更改为 1,则 false 就是正确的。
I mean, false is correct if I change it to one.
所以一不等于零。
So one is not equal to zero.
现在我们的变量 5 变成了 12。
So now what we have in variable five, we have 12.
好的。
OK.
在这里你可以看到 12 乘以 5,变量 5 就在这里。
And in here you can see 12 multiply by five and variable five is in here.
这一行是 60,这里变量五除以二,变量六是 30, 60。
In this line is 60 and in here variable five divided by two and variable sixes, 30, 60.
除以二。
Divided by two.
现在是 30。
It is 30.
好的,现在这就是我们如何使用亚洲语言进行竞赛和数学教学。
OK, so now this is how can we use our competition and math instruction in Asia language.
所以现在你可以继续其他循环。
So now you can continue in the other loops.
例如,我们可以说变量六。
For example, we can say case for example, variable six.
好的,然后我们可以说,如果是 30,例如,嗯,做点别的事情。
OK, of and then we can say if it is 30, for example, um, do something else.
例如,我们可以说变量七等于变量七加一。
For example, we can say variable seven equals variable seven plus one.
好的,现在我们可以说。
OK, and now we can say.
还有案例,好吗?
And case, OK?
所以,七号没有定义,所以我们在这里做一个递增的全局内存并定义好,我们将再次检查。
So the able seven is not defined, so this is here we are doing an incrementing and global memory and define OK and once more we will check.
它是否正常工作而不是这个项目?
Is it working correctly or not and not this project?
现在您可以看到我们的变量 6 是 30,并且我们始终递增该值。
So now you can see our variable six is 30 and we are always incrementing this value.
好的,这样就可以了。
OK, so this is working.
例如,如果我改变这个值,我们如何改变变量五需要改变。
If I change this value, for example, how can we change variable five needs to change.
因此,将变量三更改为二,例如六。
So change variable three two, for example six.
结果是十三。
And the result is thirteen.
所以乘以五。
So multiply by five.
所以结果是六十五,六比五。
So the result is sixty five and six to five.
除以二就是三十二点九,等等。
Divided by two it is thirty two point nine, etc..
现在您可以看到它在 5 的情况下不起作用,因为变量 6 不等于 30。
So now you can see it is not working in the case of five because the variable six is not equal to 30.
现在已经32了。
Now it's 32.
这就是我们如何使用 SL 编程语言中的比较和满足指令进入该视频未完成的门户。
So this is how can we use comparison and met instructions in SL programming language into a portal unfinished for this video.
下一个视频见。
See you in the next video.